//自定义sql
// 返回 List<Map<String, Object>> 

       Query query = entityManager.createNativeQuery(sql);
       query.unwrap(NativeQueryImpl.class).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);

       List<Map<String, Object>> results = query.getResultList();

       // 返回自定义对象 TaskAppDTO
       NativeQueryImpl query = entityManager.createNativeQuery(sql).unwrap(NativeQueryImpl.class);
        query.setResultTransformer(Transformers.aliasToBean(TaskAppDTO.class));

        List results = query.getResultList();
